package com.jerry.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@MapperScan(basePackages = "com.jerry.springboot.mapper")    //扫描 mybatis mapper 包路径
@ComponentScan(basePackages= {"com.jerry.springboot", "org.n3r.idworker"})     //扫描所有需要的包, 包含一些自用的工具类包
@EnableScheduling     //开启定时任务
@EnableAsync    //开启异步调用方法
public class MyApplication {
	
     public static void main(String[] args) {
         SpringApplication.run(MyApplication.class, args);
     }

     
}